package com.sx.micowell.module.smartDevice.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.miloyu.modelnet.response.SmartDeviceTypeVO;
import com.sx.micowell.R;
import com.tuya.smart.sdk.bean.DeviceBean;

import java.util.List;

/**
 * @Author: YY
 * @Time: 2021/9/16
 * @Describe 智能设备已绑定的列表 - 适配器
 */
public class DeviceTypeListAdapter extends BaseQuickAdapter<SmartDeviceTypeVO, BaseViewHolder> {

    public DeviceTypeListAdapter(@Nullable List<SmartDeviceTypeVO> data) {
        super(R.layout.item_device_type_list, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, SmartDeviceTypeVO deviceBean) {
        holder.setText(R.id.tv_notices_title, deviceBean.getIotTitle());
    }
}
